package org.dromara.system.domain.bo;


import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.dromara.system.domain.SysFaultInfo;

/**
 * 故障信息业务对象 sys_fault_info
 *
 * @author system
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysFaultInfo.class,  reverseConvertGenerate = false)
public class SysFaultInfoBo extends BaseEntity {

    /**
     * 故障ID
     */
    @NotNull(message = "故障ID不能为空", groups = { EditGroup.class })
    private Long faultId;

    /**
     * 机型
     */
    @NotBlank(message = "挖掘机机型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String excavatorModel;

    /**
     * 故障部分
     */
    @NotBlank(message = "故障部分不能为空", groups = { AddGroup.class, EditGroup.class })
    private String faultPart;

    /**
     * 故障现象
     */
    @NotBlank(message = "故障现象不能为空", groups = { AddGroup.class, EditGroup.class })
    private String faultSymptom;

    /**
     * 详细故障描述
     */
    @NotBlank(message = "详细故障描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String faultDetail;

    /**
     * 解决方案文档ID
     */
    private Long solutionId;

    /**
     * 备注
     */
    private String remark;
}
